/**
 * @description define gift apis interface
 */
import { GIFT_ADD_API, GIFT_DELETE_URL, GIFT_LIST_API, GIFT_UPDATE_URL } from '@/config/urls.conf'
import ajax from "./ajax"

export function giftListApi(params) {
    return ajax({
        url: GIFT_LIST_API,
        params
    })
}
export function giftDeleteApi(id) {
    return ajax({
        url: GIFT_DELETE_URL + `/${id}`,
        method: 'DELETE',
    })
}
export function giftAddApi(data) {
    return ajax({
        url: GIFT_ADD_API,
        method: 'PUT',
        data
    })
}
export function giftUpdateApi(data) {
    return ajax({
        url: GIFT_UPDATE_URL,
        method: 'POST',
        data
    })
}